<?php 
include_once "header.php";


echo "<div class='container'>
		<div class='row'>";
	
	
echo "<div class='span12'>
                    <div class='row'>
                        <div class='span9'>
                            <h1>Login</h1>
                        </div>
                    </div>



                    <div class='row'>

                        <div class='span5 well'>
                            <h2>Pelanggan Baru</h2>
                            <p>Dengan memiliki akun anda dapat melakukan proses belanja.</p><br />
                            <a href='register_user.php?modul=pelanggan' class='btn btn-primary pull-right'>Daftar</a>
							<h2>Rekanan Baru</h2>
                            <p>Ingin menjadi rekanan kami dan menjual produk anda di CookiesLand. Tunggu apa lagi segera mendaftar sekarang.</p><br />
                            <a href='register_user.php?modul=toko' class='btn btn-primary pull-right'>Daftar</a>
                        </div>	 		

                        <div class='span5 well pull-right'>
                            <h2>Pelanggan</h2>
                            <p>Jika anda sudah terdaftar, silahkan log in.</p>

                            <form class='' name='fr_login' action='login_aksi.php' method='post' onSubmit='return cekLogin()'>
								<label>Username</label>
								<input type='text' name='myusername' class='span3' placeholder='Type username here...'/><br/>
								<label>Password</label>
								<input type='text' name='mypassword' class='span3' placeholder='Type password here...'/><br/>
								<button class='btn btn-primary pull right' type='Submit' name='Submit' value='Login'>Submit</button>
		                    </form>

                        </div>

                    </div>
                </div>

            </div>
	
</div>";


include_once "footer.php";
?>

<script language = "javascript">
function cekLogin()
{
  if (document.fr_login.myusername.value==0) 
  {
    alert ("Nama User harus diisi!");    
    document.fr_login.myusername.focus ();
    return false;     
  }else if(document.fr_login.mypassword.value==0) 
  {
    alert ("Password harus diisi!");    
    document.fr_login.mypassword.focus ();
    return false;     
  }
  
  return true;
}
</script>
	